package com.meizi.core.tool.status;

/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2020/11/26 13:30
 */
public enum ValidStatus implements IStatus {
    TOKEN_IS_EMPTY(3001, "token为空"),
    TOKEN_IS_EXPIRE(3001, "token过期"),
    TOKEN_SIGNATURE_FAIL(3001, "签名校验失败"),
    FILE_VAILD_EXCEPTION(3002,"参数异常"),
    ;

    private int code;
    private String msg;

    ValidStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
    }
